<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sales-upload-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'sales_id'); ?>
		<?php echo $form->textField($model,'sales_id',array('size'=>12,'maxlength'=>12)); ?>
		<?php echo $form->error($model,'sales_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'member_id'); ?>
		<?php echo $form->textField($model,'member_id'); ?>
		<?php echo $form->error($model,'member_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'member_name'); ?>
		<?php echo $form->textField($model,'member_name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'member_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dt_purchase'); ?>
		<?php echo $form->textField($model,'dt_purchase'); ?>
		<?php echo $form->error($model,'dt_purchase'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'product_code'); ?>
		<?php echo $form->textField($model,'product_code',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'product_code'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'quantity'); ?>
		<?php echo $form->textField($model,'quantity'); ?>
		<?php echo $form->error($model,'quantity'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bv_product_points'); ?>
		<?php echo $form->textField($model,'bv_product_points',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'bv_product_points'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bv_earned_points'); ?>
		<?php echo $form->textField($model,'bv_earned_points',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'bv_earned_points'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dt_created'); ?>
		<?php echo $form->textField($model,'dt_created'); ?>
		<?php echo $form->error($model,'dt_created'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->